package com.xm.settlement.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.xm.settlement.commons.utils.JsonUtils;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by Loysen on 2017/2/22.
 * 实体映射数据库
 */
@TableName(value = "app_base")
public class AppBase implements Serializable{

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 数据类型 */
    private String type;

    /** 数据key*/
    private String key;

    /** 数据值*/
    private String value;

    /** 百分比*/
    private Integer percentage;

    @TableField(value = "del_flag")
    private Integer delFlag;

    @TableField(value = "create_time")
    private Date createTime;

    /** 创建人 */
    @TableField(value = "create_id")
    private Long createId;

    /** 修改人 */
    @TableField(value = "update_id")
    private Long updateId;

    @TableField(value = "update_time")
    private Date updateTime;

    public Long getId () {
        return id;
    }

    public void setId (Long id) {
        this.id = id;
    }

    public String getType () {
        return type;
    }

    public void setType (String type) {
        this.type = type;
    }

    public String getKey () {
        return key;
    }

    public void setKey (String key) {
        this.key = key;
    }

    public String getValue () {
        return value;
    }

    public void setValue (String value) {
        this.value = value;
    }

    public Integer getDelFlag () {
        return delFlag;
    }

    public void setDelFlag (Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime (Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateId () {
        return createId;
    }

    public void setCreateId (Long createId) {
        this.createId = createId;
    }

    public Long getUpdateId () {
        return updateId;
    }

    public void setUpdateId (Long updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateTime () {
        return updateTime;
    }

    public void setUpdateTime (Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }
    public Integer getPercentage() {
        return percentage;
    }

    public void setPercentage(Integer percentage) {
        this.percentage = percentage;
    }


}
